package review01;

/**
 * @author HLF
 * @version V1.0
 * @package review01
 * @date 2021/10/14 9:15
 */
public class Student02 {
    private Integer age;
    private String name;
    private School school;

    public Student02() {
    }

    public Student02(Integer age, String name, School school) {
        this.age = age;
        this.name = name;
        this.school = school;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public School getSchool() {
        return school;
    }

    public void setSchool(School school) {
        this.school = school;
    }

    @Override
    public String toString() {
        return "Student02{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", school=" + school +
                '}';
    }
}
